package com.open.capacity.uaa.feign;

import com.open.capacity.common.feign.FeignExceptionConfig;
import com.open.capacity.common.model.DocType;
import com.open.capacity.common.web.Result;
import com.open.capacity.uaa.feign.fallback.FirebirdFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value="firebird-center",configuration = FeignExceptionConfig.class ,fallbackFactory = FirebirdFeignClientFallbackFactory.class, decode404 = true)
public interface FirebirdFeignClient {

    /**
     * 获取证件类型列表
     * @return
     */
    @GetMapping("/fireBird/getDocTypeList")
    List<DocType> getDocTypeList();

    /**
     * 获取录取查询结果
     * @param map
     * @return
     */
    @PostMapping("/fireBird/admissionQuery")
    Result admissionQuery(@RequestBody Map map);
}
